﻿namespace How_toEval;

public class Token
{
    public Token(TokenType type, string content)
    {
        Content = content;
        Type = type;
    }

    public override string ToString()
    {
        string str = $"Token: [ {Type.ToString(),-16}: {Content.ToString(),-4} ]";
        return str;
    }

    public TokenType Type { get; }

    public string Content { get; }

    public void Deconstruct(out TokenType type, out string content)
    {
        type = Type;
        content = Content;
    }
}
